import request from '@/utils/request'

// 获取当前登录人消息 分页
export function listMessage(params) {
  return request({
    url: '/system/notify-message/page',
    method: 'get',
		params
  })
}
// 获得消息详情
export function infoMessage(id) {
  return request({
    url: '/system/notify-message/get?id='+id,
    method: 'get'
  })
}
// 标记消息为已读
export function readMessage(id) {
  return request({
    url: '/system/notify-message/update-read?ids='+id,
    method: 'put'
  })
}